<template>
    <div>
        <input type="text" placeholder="请输入" v-model="tts" @blur="add(1)">
    </div>
</template>

<script setup>
import {ref,defineEmits} from 'vue'

const tts=ref()
const emits=defineEmits(['add'])
const add=(i)=>{
    console.log(i)
    const obj={tts:tts.value, ic:i}
    emits('add',obj)
}
</script>

<style lang="scss" scoped>

</style>